package sisi.invoices;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * Suppinvoice.java - The persistent class for the <i>suplier's invoice database table</i>. 
 * @author Pedro Gonzalez pedro@sisisoftware.it
 * @author Claudio Pelosi claudio@sisisoftware.it
 * @author SISI Software S.n.c. - www.sisisoftware.it
 * @version 1.0, 08/09/2014
 * 
 */
@Entity
@Table(name="suppinvoice")
public class Suppinvoice implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="SUPPINVOICE_RECNUM_GENERATOR", sequenceName="SUPPINVOICESEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SUPPINVOICE_RECNUM_GENERATOR")
	@Column(unique=true, nullable=false)
	private Integer recnum;

	private Boolean art15;

	@Column(length=5)
	private String bankdoc;

	private Timestamp bankdtdoc;

	@Column(name="cc_type", length=15)
	private String ccType;

	private double change;

	@Column(length=2147483647)
	private String clipobject;

	@Column(length=16)
	private String creditterms;

	@Column(length=10)
	private String curr;

	private Integer custid;

	@Column(length=50)
	private String custname;

	private Boolean deleted;

	private Timestamp deliverydt;

	@Column(length=20)
	private String dn;

	@Column(name="dt_up")
	private Timestamp dtUp;

	private Timestamp duedate;

	private double exchangerate;

	@Column(length=3)
	private String initial;

	private Timestamp invoicedt;

	private Timestamp invoicedtreg;

	@Column(length=50)
	private String memento;

	@Column(name="nfys_note", length=255)
	private String nfysNote;

	@Column(name="order_")
	private Integer order;

	private Boolean paid;

	private double paidamount;

	private Timestamp payddt;

	@Column(length=10)
	private String paymode;

	private Integer portidpass;

	@Column(length=50)
	private String porttoref;

	@Column(length=4)
	private String recbook;

	@Column(length=2)
	private String stat;

	private Integer suppid;

	@Column(length=50)
	private String suppname;

	@Column(length=25)
	private String suppnuminvoice;

	private double suppval;

	@Column(length=5)
	private String tdoc;

	private double totalinvoice;

	private double tottaxed;

	private double totvat;

	@Column(length=1)
	private String type;

	private Boolean vatyesno;

	public Suppinvoice() {
	}

	public Integer getRecnum() {
		return this.recnum;
	}

	public void setRecnum(Integer recnum) {
		this.recnum = recnum;
	}

	public Boolean getArt15() {
		return this.art15;
	}

	public void setArt15(Boolean art15) {
		this.art15 = art15;
	}

	public String getBankdoc() {
		return this.bankdoc;
	}

	public void setBankdoc(String bankdoc) {
		this.bankdoc = bankdoc;
	}

	public Timestamp getBankdtdoc() {
		return this.bankdtdoc;
	}

	public void setBankdtdoc(Timestamp bankdtdoc) {
		this.bankdtdoc = bankdtdoc;
	}

	public String getCcType() {
		return this.ccType;
	}

	public void setCcType(String ccType) {
		this.ccType = ccType;
	}

	public double getChange() {
		return this.change;
	}

	public void setChange(double change) {
		this.change = change;
	}

	public String getClipobject() {
		return this.clipobject;
	}

	public void setClipobject(String clipobject) {
		this.clipobject = clipobject;
	}

	public String getCreditterms() {
		return this.creditterms;
	}

	public void setCreditterms(String creditterms) {
		this.creditterms = creditterms;
	}

	public String getCurr() {
		return this.curr;
	}

	public void setCurr(String curr) {
		this.curr = curr;
	}

	public Integer getCustid() {
		return this.custid;
	}

	public void setCustid(Integer custid) {
		this.custid = custid;
	}

	public String getCustname() {
		return this.custname;
	}

	public void setCustname(String custname) {
		this.custname = custname;
	}

	public Boolean getDeleted() {
		return this.deleted;
	}

	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}

	public Timestamp getDeliverydt() {
		return this.deliverydt;
	}

	public void setDeliverydt(Timestamp deliverydt) {
		this.deliverydt = deliverydt;
	}

	public String getDn() {
		return this.dn;
	}

	public void setDn(String dn) {
		this.dn = dn;
	}

	public Timestamp getDtUp() {
		return this.dtUp;
	}

	public void setDtUp(Timestamp dtUp) {
		this.dtUp = dtUp;
	}

	public Timestamp getDuedate() {
		return this.duedate;
	}

	public void setDuedate(Timestamp duedate) {
		this.duedate = duedate;
	}

	public double getExchangerate() {
		return this.exchangerate;
	}

	public void setExchangerate(double exchangerate) {
		this.exchangerate = exchangerate;
	}

	public String getInitial() {
		return this.initial;
	}

	public void setInitial(String initial) {
		this.initial = initial;
	}

	public Timestamp getInvoicedt() {
		return this.invoicedt;
	}

	public void setInvoicedt(Timestamp invoicedt) {
		this.invoicedt = invoicedt;
	}

	public Timestamp getInvoicedtreg() {
		return this.invoicedtreg;
	}

	public void setInvoicedtreg(Timestamp invoicedtreg) {
		this.invoicedtreg = invoicedtreg;
	}

	public String getMemento() {
		return this.memento;
	}

	public void setMemento(String memento) {
		this.memento = memento;
	}

	public String getNfysNote() {
		return this.nfysNote;
	}

	public void setNfysNote(String nfysNote) {
		this.nfysNote = nfysNote;
	}

	public Integer getOrder() {
		return this.order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}

	public Boolean getPaid() {
		return this.paid;
	}

	public void setPaid(Boolean paid) {
		this.paid = paid;
	}

	public double getPaidamount() {
		return this.paidamount;
	}

	public void setPaidamount(double paidamount) {
		this.paidamount = paidamount;
	}

	public Timestamp getPayddt() {
		return this.payddt;
	}

	public void setPayddt(Timestamp payddt) {
		this.payddt = payddt;
	}

	public String getPaymode() {
		return this.paymode;
	}

	public void setPaymode(String paymode) {
		this.paymode = paymode;
	}

	public Integer getPortidpass() {
		return this.portidpass;
	}

	public void setPortidpass(Integer portidpass) {
		this.portidpass = portidpass;
	}

	public String getPorttoref() {
		return this.porttoref;
	}

	public void setPorttoref(String porttoref) {
		this.porttoref = porttoref;
	}

	public String getRecbook() {
		return this.recbook;
	}

	public void setRecbook(String recbook) {
		this.recbook = recbook;
	}

	public String getStat() {
		return this.stat;
	}

	public void setStat(String stat) {
		this.stat = stat;
	}

	public Integer getSuppid() {
		return this.suppid;
	}

	public void setSuppid(Integer suppid) {
		this.suppid = suppid;
	}

	public String getSuppname() {
		return this.suppname;
	}

	public void setSuppname(String suppname) {
		this.suppname = suppname;
	}

	public String getSuppnuminvoice() {
		return this.suppnuminvoice;
	}

	public void setSuppnuminvoice(String suppnuminvoice) {
		this.suppnuminvoice = suppnuminvoice;
	}

	public double getSuppval() {
		return this.suppval;
	}

	public void setSuppval(double suppval) {
		this.suppval = suppval;
	}

	public String getTdoc() {
		return this.tdoc;
	}

	public void setTdoc(String tdoc) {
		this.tdoc = tdoc;
	}

	public double getTotalinvoice() {
		return this.totalinvoice;
	}

	public void setTotalinvoice(double totalinvoice) {
		this.totalinvoice = totalinvoice;
	}

	public double getTottaxed() {
		return this.tottaxed;
	}

	public void setTottaxed(double tottaxed) {
		this.tottaxed = tottaxed;
	}

	public double getTotvat() {
		return this.totvat;
	}

	public void setTotvat(double totvat) {
		this.totvat = totvat;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Boolean getVatyesno() {
		return this.vatyesno;
	}

	public void setVatyesno(Boolean vatyesno) {
		this.vatyesno = vatyesno;
	}

}